package com.ktgj.pay.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.pay.mapper.PayBusinessMapper;
import com.ktgj.pay.domain.PayBusiness;
import com.ktgj.pay.service.IPayBusinessService;

/**
 * 业务线支付Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-08
 */
@Service
public class PayBusinessServiceImpl implements IPayBusinessService 
{
    @Autowired
    private PayBusinessMapper payBusinessMapper;

    /**
     * 查询业务线支付
     * 
     * @param businessId 业务线支付ID
     * @return 业务线支付
     */
    @Override
    public PayBusiness selectPayBusinessById(Long businessId)
    {
        return payBusinessMapper.selectPayBusinessById(businessId);
    }

    /**
     * 查询业务线支付列表
     * 
     * @param payBusiness 业务线支付
     * @return 业务线支付
     */
    @Override
    public List<PayBusiness> selectPayBusinessList(PayBusiness payBusiness)
    {
        return payBusinessMapper.selectPayBusinessList(payBusiness);
    }

    /**
     * 新增业务线支付
     * 
     * @param payBusiness 业务线支付
     * @return 结果
     */
    @Override
    public int insertPayBusiness(PayBusiness payBusiness)
    {
        return payBusinessMapper.insertPayBusiness(payBusiness);
    }

    /**
     * 修改业务线支付
     * 
     * @param payBusiness 业务线支付
     * @return 结果
     */
    @Override
    public int updatePayBusiness(PayBusiness payBusiness)
    {
        return payBusinessMapper.updatePayBusiness(payBusiness);
    }

    /**
     * 批量删除业务线支付
     * 
     * @param businessIds 需要删除的业务线支付ID
     * @return 结果
     */
    @Override
    public int deletePayBusinessByIds(Long[] businessIds)
    {
        return payBusinessMapper.deletePayBusinessByIds(businessIds);
    }

    /**
     * 删除业务线支付信息
     * 
     * @param businessId 业务线支付ID
     * @return 结果
     */
    @Override
    public int deletePayBusinessById(Long businessId)
    {
        return payBusinessMapper.deletePayBusinessById(businessId);
    }
}
